package com.cheejee.goodscenter.module.dto;

import java.math.BigDecimal;
import java.util.List;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import org.springframework.validation.annotation.Validated;

import com.cheejee.goodscenter.validated.InsertGroup;

import lombok.Data;

/**
 * @author CARRY
 * @Date 2020年11月3日上午1:33:52
 */
@Data
public class SkuSnapshotDto {
    private Long id;

    @NotNull(message = "SKU ID不能为空", groups = InsertGroup.class)
    private Long skuId;

    @NotNull(message = "商品ID不能为空", groups = InsertGroup.class)
    private Long goodsId;

    private BigDecimal price;

    private Integer stocc;

    private String pic;

    @NotNull(message = "SKU版本号不能为空", groups = InsertGroup.class)
    private Integer version;

    private Boolean isOn;

    @NotEmpty(message = "SKU规格不能为空", groups = InsertGroup.class)
    private List<@NotNull(message = "SKU规格不能为空", groups = InsertGroup.class)SkuSpecificDto> specificGroup;

    private String webDetail;

    private String mobileDetail;
}
